<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>管理员管理-有点</title>
<link rel="stylesheet" type="text/css" href="<?php echo Url::base(); ?>/resource/css.css">
<link rel="stylesheet" type="text/css" href="<?php echo Url::base(); ?>/resource/pageGroup.css">

	<script src="<?php echo Url::base();?>jquery.min.js" type="text/javascript"></script>
	<script src="<?php echo Url::base(); ?>jquery.uploadify.min.js" type="text/javascript"></script>
	<link rel="stylesheet" type="text/css" href="<?php echo Url::base(); ?>uploadify.css">


	<link rel="stylesheet" type="text/css" href="<?php echo Url::base(); ?>/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="<?php echo Url::base(); ?>/themes/icon.css">
	<script type="text/javascript" src="<?php echo Url::base(); ?>/jquery.easyui.min.js"></script>
<!-- <script type="text/javascript" src="js/page.js" ></script> -->
</head>
<body>
<form method="post" action="<?php echo Url::base(); ?>index.php/setm/setImgUpdate">
	<input id="file_upload10" name="name" type="file" multiple="true"><br>
	<input type="hidden"  attr="file_upload10" value="<?php echo $data[0]['img'];?>" name="pic"><br>
	<img src="<?php echo Url::base(); ?>uploads/<?php echo $data[0]['img'];?>" width="500"><br>

	<script>

		$(function(){
			$('#file_upload10').uploadify({

				'formData'     : {
				},
				'swf'      : '<?php echo Url::base(); ?>uploadify.swf',
				'uploader' : '<?php echo Url::base(); ?>index.php/productm/upload',
				'onUploadSuccess':function(file,data,response){
					if(data== 'false'){
						alert("图片格式不正确请检查")
					}else{
						alert("上传成功")
						$("input[attr='file_upload10']").val(data)

					}}

			});
		})
	</script>
<input type="submit">
	</form>
</body></html>